<!DOCTYPE html>
<html>
    <head>
        <script src="/js-test-resources/js-test.js"></script>
        <script>
            i = 0;
            document.addEventListener('readystatechange', function()
            {
                if (i == 1)
                    parent.removeFrame();
                i++;
            });

            window.addEventListener('DOMContentLoaded', function()
            {
                document.getElementById("videoTag").load();
                document.body.removeChild(document.getElementById("videoTag"));
                gc();
            });
        </script>
    </head>
    <body>
      <video id="videoTag" src="empty.ogv"></video>
    </body>
</html>
